package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_goods_activity;
import cn.com.util.*;

/**
 * 
 */
@Service
public interface ApiT_goods_activityService {

	// 根据id查看
	public ApiT_goods_activity findT_goods_activityById(Integer id);

	// 查看数据集
	public List<ApiT_goods_activity> findT_goods_activitys();
	
	public void updatePriceAndSNum(Integer actid);

	// 查看营销活动商品
	public Map<String, Object> findT_goods_activitysByActTypeId(Integer cityid,
			String act_type_id, PageInfo pi) throws Exception;
	
	public List<ApiT_goods_activity> searGruopAll(String actid);

	// 添加
	public int insertT_goods_activity(ApiT_goods_activity t_goods_activity);
	
	public boolean updateOver(String isover,String actid);

	// 修改
	public int updateT_goods_activity(ApiT_goods_activity t_goods_activity);

	// 删除
	public int deleteT_goods_activity(Integer id);
	
	public List<ApiT_goods_activity> groupByAll(String cityid,String actid);
	
	public List<Map<String,Object>> searActTime(Map<String,String> map);
	
	public void updateActStatus();
	
	public boolean recoveryPriceAndSNum(Integer actid);
	
	public Integer checkActTime(String actid,String cityid,String time,String oldetime,String oldstime,String time1,String charge_money);
	
	/**  syy start  */
	//根据条件查询活动商品----这里是写积分商城是写的
	public List<ApiT_goods_activity> searchActivityGoods(Map<String,Object> conditions,PageInfo page);
	
	//充值有礼商品查询
	public void searchChargeActivityGoods(Map<String,Object> map,String city_id);

	//根据条件查询 营销活动类型的商品信息集
	public List<Map<String, Object>> searchActivityGoodsInfo(
			Map<String, Object> conditions, PageInfo page);
	
	/**  syy end  */

}
